var SnakeFood = DisplayObject.extend({
	constructor: function(x, y)
	{
		this.x = x;
		this.y = y;
		this.width = SnakeFood.SIZE * 2;
		this.height = SnakeFood.SIZE * 2;
		this.addToStage();
	},

	draw: function()
	{
		var centerX = this.x + SnakeFood.SIZE;
		var centerY = this.y + SnakeFood.SIZE;
		g_context.fillStyle = SnakeFood.BODY_COLOR;
		g_context.strokeStyle = SnakeFood.BORDER_COLOR;
		g_context.beginPath();
		g_context.arc(centerX, centerY, SnakeFood.SIZE, 0, 2 * Math.PI);
		g_context.closePath();
		g_context.fill();
		g_context.stroke();
	}
}, {
	SIZE: 10,
	BODY_COLOR: '#CC0000',
	BORDER_COLOR: '#4C0000'
});